<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>
    <script>
        // 用户依次输入2个值，最后弹出最大的那个值
        var num = +prompt('请输入第一个数字')
        var num1 = +prompt('请输入第二个数字')
        if (num > num1) {
            alert(num)
        } else {
            alert(num1)
        }
    </script>
</body>
</html>